home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / video / zapem-0.000 / zapem-0 / zapem / Makefile < prev    next >
Makefile  |  1995-06-06  |  2KB  |  58 lines

  1. #############################################################################
  2. # Copyright 1994/95 Alex Hornby. All Rights Reserved. See file 1-README for 
  3. # details. See 1-README.install for installation instructions.
  4. #############################################################################
  5.  
  6. version=0.2
  7. BINDIR=/usr/local/games
  8.  
  9. # Where are the graphics, sounds etc?
  10. LIBDIR=/usr/local/lib/zapem/
  11. libdef= -DLIBDIR=\"$(LIBDIR)\"
  12.  
  13. # Uncomment this if the game runs too fast
  14. fast= #-DFAST
  15.  
  16. # Uncomment this for joystick control
  17. joystick= #-DJOYSTICK
  18.  
  19. # Is it quiet in here?
  20. sound= #-DSOUND
  21.  
  22. #############################################################################
  23. # Don't change anything below the line unless you know what you are doing.
  24. #############################################################################
  25.  
  26. options = $(joystick) $(fast) $(libdef) $(sound)
  27. cflags = $(options) -Wall -m486 -O2 -fomit-frame-pointer
  28. objs =  alopen.o projectile.o popgun.o entity.o soul.o screen.o starfield.o\
  29.     rnd.o asmblock.o animation.o sprite.o control.o Joystick.o Keyboard.o\
  30.     menu.o RawKey.o player.o font.o block.o gamelib.o main.o gif.o soundIt.o\
  31.     display.o palette.o
  32. target = zapem
  33.  
  34. COMPILE.c=gcc $(cflags) -c
  35. COMPILE.cc=g++ $(cflags) -c
  36. COMPILE.S=gcc $(cflags) -c
  37.  
  38. all: $(target)
  39.  
  40. install: $(target) 
  41.     install -s -m6755 $(target) $(BINDIR)
  42.     install -m755 -d $(LIBDIR)
  43.     install -m755 -d $(LIBDIR)gfx
  44.     install -m755 -d $(LIBDIR)sfx
  45.     install -m755 gfx/* $(LIBDIR)gfx
  46.     install -m755 sfx/* $(LIBDIR)sfx
  47.  
  48. $(target) : $(objs)
  49.     g++ $(cflags) -o $(target) $(objs) -lvga 
  50.  
  51. soundIt.o: soundIt.h
  52.  
  53. package: clean
  54.     cd .. && tar cvf - zapem | gzip -9 > zapem-$(version).tgz
  55.  
  56. clean :
  57.     rm -f core *.o $(target)
  58.